Use a stamp file to protect against corrupt checkouts
authorAlex Crichton <alex@alexcrichton.com>
Wed, 9 Sep 2015 22:44:43 +0000 (15:44 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 9 Sep 2015 23:23:43 +0000 (16:23 -0700)
commit3a87d0067ce036152900514901e0959dfe5200a4
tree643eefd85d802c4229519ab802679eb77b0221e9
parentd23ddec1b2318de74e980b5fed08d5411620bd92
Use a stamp file to protect against corrupt checkouts

We already take this strategy for extracting tarballs from crates.io for
example, so this just applies the same strategy to checkouts of git repos.

Closes #1979
src/cargo/sources/git/utils.rs
tests/test_cargo_compile.rs